//
//  ViewController.m
//  UI05_homeWork
//
//  Created by dllo on 16/6/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "CustomView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self createDeng];
    
    // Do any additional setup after loading the view, typically from a nib.
}

-(void)createDeng {
    
    CustomView *view = [[CustomView alloc] initWithFrame:CGRectMake(50, 100, 100, 100)];
    [self.view addSubview:view];
    [view release];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
